package com.vcaresolution.logistic.service;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;

import com.vcaresolution.logistic.form.LoginForm;
import com.vcaresolution.logistic.form.UserForm;
import com.vcaresolution.logistic.pojo.Branch;
import com.vcaresolution.logistic.to.UserProfileTO;


/**
 * <code>UserService</code> is used to track all User related activities. This includes
 * login, registration etc.
 * 
 * @author Snehal Shah
 * @version 1.0
 * @since ShipSoft 1.0
 */

public interface UserService {

	UserProfileTO login(LoginForm loginForm);
	public List<UserProfileTO> findByAll();
	public void add(UserForm object);
	public UserProfileTO findById(Serializable userID);
	public void update(UserForm object);
//	public Set<Branch> getBranches(Integer userId);
	public void deleteAssociatedBranches(Serializable userId);
	public void deleteAssociatedDepartments(Serializable userId);
	public void addAssociatedBranches(Serializable userId,Set<Integer> branchId);
	public void addAssociatedDepartments(Serializable userId,Set<Integer> departmentId);
	
}
